<%@ page language="java" import="java.util.*,java.text.*" contentType="text/html; charset=utf-8"%>
<jsp:useBean id="regUser" class="com.cdj.User" scope="session"></jsp:useBean>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>用户信息</title>
</head>
<body>
<h1 align="center">用户信息</h1>
<table>
<tr><td>用户名：</td><td><jsp:getProperty name="regUser" property="username"/></td></tr>
<tr><td>密码：</td><td><jsp:getProperty name="regUser" property="password"/></td></tr>
<tr><td>电子邮箱：</td><td><jsp:getProperty name="regUser" property="email"/></td></tr>
<tr><td>自我介绍：</td><td><jsp:getProperty property="introduce" name="regUser"/></td></tr>
<tr><td>爱好：</td>
<td>
<% 
if(regUser.getFavorite()!=null){
String[] favorites = regUser.getFavorite();
for(String f:favorites){
%>
<%=f%> &nbsp;&nbsp;
<% 
}
}
%>
</td>
</tr>
</table>
</body>
</html>